//
//  Step1RewardSum.m
//  Gunz
//
//  Created by Joggy on 16/4/14.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import "Step1Input.h"
#import "GZConst.h"

@implementation Step1Input

-(instancetype)initWithTitle:(NSString *)title {
    self = [super initWithFrame:CGRectMake(0, 0, [GZConst getScreenWidth], 36)];
    UILabel *titl = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 62, 17)];
    titl.layer.position = CGPointMake(62*proportion, self.frame.size.height/2);
    titl.textColor = TEXT_TITLE_COLOR;
    titl.font = [UIFont systemFontOfSize:14];
    titl.text = title;
    [self addSubview:titl];
    _textField = [[UITextField alloc] initWithFrame:CGRectMake(0, 0, 150*proportion, 36)];
    _textField.layer.position = CGPointMake(196*proportion, self.frame.size.height/2);
    NSString *plac = @"输入框";
    _textField.placeholder = plac;
    _textField.layer.borderWidth = 1;
    _textField.layer.borderColor = TEXT_BORDER_COLOR.CGColor;
    _textField.backgroundColor = [UIColor whiteColor];
    _textField.layer.cornerRadius = 6;
    _textField.leftView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 10, 36)];
    _textField.leftViewMode = UITextFieldViewModeAlways;
    [self addSubview:_textField];
    return self;
}

@end
